<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

/**
 * App\Models\ZhuangXiu
 *
 * @property int $id
 * @property string|null $area 面积
 * @property string|null $kaijian 开间
 * @property string|null $jinshen 进深
 * @property string|null $cenggao 层高
 * @property string|null $fengge 装修风格
 * @property string|null $yaoqiu 特殊要求
 * @property int|null $user_id 用户
 * @method static \Illuminate\Database\Eloquent\Builder|ZhuangXiu newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|ZhuangXiu newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|ZhuangXiu query()
 * @method static \Illuminate\Database\Eloquent\Builder|ZhuangXiu whereArea($value)
 * @method static \Illuminate\Database\Eloquent\Builder|ZhuangXiu whereCenggao($value)
 * @method static \Illuminate\Database\Eloquent\Builder|ZhuangXiu whereFengge($value)
 * @method static \Illuminate\Database\Eloquent\Builder|ZhuangXiu whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|ZhuangXiu whereJinshen($value)
 * @method static \Illuminate\Database\Eloquent\Builder|ZhuangXiu whereKaijian($value)
 * @method static \Illuminate\Database\Eloquent\Builder|ZhuangXiu whereUserId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|ZhuangXiu whereYaoqiu($value)
 * @mixin \Eloquent
 * @property-read \App\Models\User|null $user
 * @property \Illuminate\Support\Carbon|null $created_at
 * @property \Illuminate\Support\Carbon|null $updated_at
 * @method static \Illuminate\Database\Eloquent\Builder|ZhuangXiu whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|ZhuangXiu whereUpdatedAt($value)
 */
class ZhuangXiu extends Model
{
    use HasFactory,HasDateTimeFormatter;
    protected $table='zhuangxiu';
    public function user(){
        return $this->belongsTo(User::class,'user_id');
    }
}
